<?php



function printNewMessage($home_message) {

    echo '
        <div id="home_message">
            <span class="template_span">Nouveau message d\'acceuil:</span>
            
            <form action="' . URL_ROOT . 'update-home" method="post"  enctype="multipart/form-data">
                <p>
                <textarea class="template_input" name="new_home_message" id="visu" cols="40" rows="5">'.$home_message.'</textarea>
                </br>
                                <input  type="file" name="photo" />
                </br>

                <input class="button" type="submit" value="Enregistrer" />
                </p>
             </form>
	</div>
';
}

function viewCreated($new_home_message) {

    echo '
        <div id="home_message">
        
        <span class="template_span">Le message d\'acceuil a été modifié</span>
	</div>';

    echo '
        <div id="home_message">
            <span class="template_span">Message d\'acceuil actuel: ' . $new_home_message . '  </span>
	</div>';
}

?>
